This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Jul 14, 2016, 8:48 PM
4 Posts

Body - fields will be duplicated in Lotusscript with CopyToDatabase

  • Category: Domino Designer
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: CopyToDatabase
  • Replies: 1

The Body field in Richtext-Mails will be in documents twice , if the Body will be greather than an certain amount of bytes there are normally two in our case four Body fields.

MS Windows Terminalserver 2012,  Windows/Longhorn 6.2 Intel Pentium, Client Software Windows on Citrix , IBM Notes Basic 9.0.1 FP2

The domino servers are 9.0.1 but I believe it is a problem with the Citrix client, there are so much other users they do not have these probleme.

In our case we will copy a document via a transfer database in a crm suite database

'copy document to transfer database
Set transferDoc=sourceDoc.CopyToDatabase(transferDb)
Set authorsItem = transferDoc.ReplaceItemValue("xRights", "*") 'to give user author access for the new doc
If Not authorsItem Is Nothing Then
 authorsItem.IsAuthors=True
End If
Call transferDoc.Save(True, True, True)
'copy document to target database
Set targetDoc = transferDoc.CopyToDatabase(targetDb)
         

I don't know why this will be created, when we use script debugger there is no error visible. 

The result are two times the content of a memo in the document in the target database. 

Jul 20, 2016, 10:50 AM
5 Posts
Try a forall loop

Try creating a new document in the target document via db.CreateDocument and do a forall itm in sourcedoc.Items and copy each individually. I believe it will only pick up a single instance of the Body field.


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal